package com.b2.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.b2.pojo.entity.Director;
import com.b2.service.DirectorService;
import com.b2.mapper.DirectorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 悦神
* @description 针对表【director】的数据库操作Service实现
* @createDate 2024-04-25 11:02:45
*/
@Service
public class DirectorServiceImpl extends ServiceImpl<DirectorMapper, Director>
    implements DirectorService{


    @Autowired
    DirectorMapper directorMapper;
    @Override
    public List<Director> getname() {
        LambdaQueryWrapper<Director> o = new LambdaQueryWrapper<>();
        o.select(Director::getKindergartenName);
        List<Director> directors = directorMapper.selectList(o);
        return directors;
    }
}




